@import "../../../css/variable.less";

.dishPicBox{
  width: 100%;
  height: 2.4rem;
  position: relative;
  overflow: hidden;

  .none-img{
    width: 100%;
    height: 100%;

    i{
      font-size: 1rem;
      color: @gray-color-9;
      font-weight: 100;
    }
  }

  img.dishPicCenter{
    position: relative;
    top: 50%;
    width: 100%;
    min-height: 100%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
  }

  /* 渐变的黑底 */
  &:after{
    content: '';
    height: 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: -webkit-linear-gradient( bottom, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.3) 64%, transparent );
  }

  /* 在渐变黑底上写字 */
  .nameOnePic{
    position: absolute;
    left: 0.1rem;
    right: 0.1rem;
    bottom: 0.1rem;
    z-index: 1;
    text-shadow: 1px 1px 1px #000;
    color: #fff;
    font-size: 0.18rem;

    i{
      font-size: 0.2rem;
    }

    .text-h3 {
      font-size: 0.18rem;
      font-weight: bold;
    }
  }
}

.list-card-item{
  width: 100%;
  border-top: 1px solid @gray-color-de;
  border-bottom: 1px solid @gray-color-e;
  margin-top: 0.1rem;
  margin-bottom: 0;
  background-color: #fff;

  &.first {
    margin-top: 0;
  }

  .item-title {
    width: 100%;
    font-size: 0.17rem;
    padding: 0.1rem;
    border-bottom: 1px solid @gray-color-e;
  }

  .item-brief {
    width: 95%;
    padding: 0.1rem;
  }

  pre.item-desc {
    width: 95%;
    padding: 0.1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  .dishBasicInfo {
    padding: 0.1rem;

    .my-tags{
      padding: 0.04rem 0.06rem;
      border-radius: 0.05rem;
      margin-right: 0.1rem;

      i{
        font-size: 0.18rem;
        margin-right: 0.04rem;
      }
    }
  }
}

.fixed-btn-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100%;
  margin-bottom: 0.1rem;
  z-index: 1;

  /* 去除btn上的icon */
  .am-icon{
    display: none;
  }

  .radius-btn {
    color: @white;
    background-color: @theme-color;
    border-radius: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.15rem;

    &.edit {
      background-color: @strong-color-4;
    }
    &.del {
      background-color: @strong-color-1;
      margin-left: 0;
    }
    &.eat {
      background-color: @theme-color;
    }
  }
}
